package com.sihan.framework.etm.mapper.business;

import com.framework.mybatis.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author gyz
 * @version 1.0
 * @since jdk1.8
 */
@SuppressWarnings("rawtypes")
@Mapper
public interface GeneralMapper extends BaseMapper {

	List<Map> getToolListByTypeId(@Param(value = "typeId") String typeId);

	String getToolIdByToolCode(@Param(value = "code") String code);

	List<Map> getLatestBorrowAndReturnRocord(@Param(value = "toolId") String toolId);

	String getBorrowDetailIdByToolId(@Param(value = "toolId")String toolId);
}
